﻿using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;

namespace GameView.Comment
{
    public partial class TreeNode : ObservableObject
    {
        [ObservableProperty]
        public int _type;

        [ObservableProperty]
        public int _id;

        [ObservableProperty]
        public int _status;

        [ObservableProperty]
        public bool _isParent;

        [ObservableProperty]
        public string _name;

        public ObservableCollection<TreeNode> Children { get; set; } = new();

        [ObservableProperty]
        public TreeNode _parent;
    }
}